package pub.tbc.hh.mall.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import pub.tbc.hh.mall.service.WaresTypeService;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @auth tbc on 2018/5/20.
 */
@RestController
public class WaresTypeController {

    @Resource(name = "waresTypeService")
    private WaresTypeService waresTypeService;

    @GetMapping("wares/types")
    public Map<String, Object> types() {
        return waresTypeService.types();
    }

}
